package com.ofps.forms.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.ofps.common.core.domain.entity.SysUser;
import com.ofps.forms.common.utils.R;
import com.ofps.forms.domain.Dto.UserDto;
import com.ofps.forms.domain.MyUser;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author pyn
 * @date 2022/5/6 - 21:20
 */
public interface  MyUserService extends IService<MyUser> {

    //用户注册接口
    R register(MyUser myUser);

    //登录接口
    //成功返回 token 失败返回 null
    R login(UserDto userDto);

    R getInfo(HttpServletRequest request);

    String queryUserNameWithUserId(String UserId);

    String queryNickNameWithUserId(String UserId);

    List<SysUser> queryWithDeptId(Long deptId);
}
